import java.util.Scanner;

public class Last {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入三个数:");
        int a= input.nextInt();
        int b= input.nextInt();
        int c= input.nextInt();
        if (a<b&&b<c) {
            System.out.println("排序结果为"+a+" "+b+" "+c);
        }else if (a<c&&c<b) {
            System.out.println("排序结果为"+a+" "+c+" "+b);
        }else if (b<a&&a<c) {
            System.out.println("排序结果为"+b+" "+a+" "+c);
        }else if (b<c&&c<a) {
            System.out.println("排序结果为"+b+" "+c+" "+a);
        }else if (c<a&&a<b) {
            System.out.println("排序结果为"+c+" "+a+" "+b);
        }else if (c<b&&b<a) {
            System.out.println("排序结果为"+c+" "+b+" "+a);
        }
    }
}
